package com.cherrish;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cherrish
 * @time 2018-09-04 10:12
 * @name TestController
 * @desc:
 */
@RestController
public class TestController {
    @Autowired
    private UserGrpcService userGrpcService;

    @GetMapping(value = "/add")
    public String add(){
        return userGrpcService.addUser();
    }

    @GetMapping(value = "/test")
    public String test(String name){
        return name;
    }
}
